Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-seamless-immutable

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-seamless-immutable

Helpers for using seamless-immutable with Redux

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18K
decreased by-3.91%
Maintainers
1
Weekly downloads
 
Created
Source

redux-seamless-immutable

Helpers for using seamless-immutable in Redux. Provides a compatible combineReducers and routerReducer (for use with react-router-redux).

Installation

$ npm install redux-seamless-immutable

Usage

import { combineReducers, routerReducer, stateTransformer } from 'redux-seamless-immutable'
import { createStore, applyMiddleware } from 'redux'
import createLogger from 'redux-logger'

import reducer from './reducers'

const rootReducer = combineReducers({
  reducer,
  routing: routerReducer
})

const loggerMiddleware = createLogger({
  stateTransformer: stateTransformer
})

const store = createStore(
  rootReducer,
  applyMiddleware(
    loggerMiddleware
  )
)

API

combineReducers(reducers)

A seamless-immutable compatible combineReducers.

routerReducer(state, action)

A seamless-immutable compatible replacement for the routerReducer from react-router-redux.

stateTransformer(state)

A stateTransformer for the redux-logger middleware to convert an Immutable store to a plain JS object.

Keywords

FAQs

Package last updated on 26 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc